import rpy2.robjects as robjects
import math
import random
r = robjects.r

rsort = r['sort']

# total amount of water
C = 100
# number of the agents
n = 20

x = robjects.FloatVector([])
y = robjects.FloatVector([])
delta = robjects.FloatVector([])

for i in range(n):
		delta = delta + random.uniform(.7, .99)

print(x)

#x = [1,2,3]
#y = [2,4,2]
#
#r.png('plot.png',width=500,height=400)
#r.plot(x,y)
#r['dev.off']()


